package com.yb.guigu.pick.security.annotation;

import com.yb.guigu.pick.security.handler.GuiguPickSecurityExceptionHandler;
import com.yb.guigu.pick.security.imports.GuiguSecurityImportBeanDefinition;
import com.yb.guigu.pick.cache.manager.annotation.EnableGuiguPickCacheManager;
import org.springframework.context.annotation.Import;

import java.lang.annotation.*;

@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Inherited
@Documented
@Import({GuiguSecurityImportBeanDefinition.class, GuiguPickSecurityExceptionHandler.class})
@EnableGuiguPickCacheManager
public @interface EnableSecurityServer {
    boolean needLogin() default false;
}
